#include <iostream>
using std::cout;
using std::endl;

int gNum = 10;

void test0(){
    int lNum = 1;
    int lNum2 = 2;
    static int sNum = 19;

    int * p = new int();
    int * p2 = new int(10);

    const char * pstr = "hello";

    cout << &pstr << endl;
    cout << &lNum2 << endl;
    cout << &lNum << endl;
    cout << p2 << endl;
    cout << p << endl;
    cout << &sNum << endl;
    cout << &gNum << endl;
    cout << pstr << endl;
    printf("%p\n",pstr);
    void * pv = static_cast<void*>(const_cast<char*>(pstr));
    cout << pv << endl;
    /* cout << &test0 << endl; */
    printf("%p\n",&test0);
}

int main(void){
    test0();
    printf("%p\n",&main);
    return 0;
}
